package ru.pb.game.network.engine.client.packets.sendable;

import ru.pb.game.network.engine.client.packets.GameServerToClientPacket;
import ru.pb.game.objects.model.players.Player;

public class opcode_279_ACK extends GameServerToClientPacket
{
	Player _p;

	public opcode_279_ACK(Player p)
	{
		_p = p;
	}

	@Override
	public void writeImpl()
	{
		writeH(279);
		writeC(_p.getPlayerInfos().getRank()); // rank?
		writeC();
		writeC(_p.getName().length()); // длина
		writeS(_p.getName(), _p.getName().length()); // ник нейм
		writeB(new byte[] {0x00, 0x00, 0x06, 0x02, 0x50, 0x20, 0x20, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x19, (byte) 0x9f, 0x49, 0x00});
	}
}